<div class="wrap_content bg_none">
    <div class="navigator_content">
        <div class="navigator_ads">
            <img class="ml_100" src="<?php echo BASE_URL; ?>/themes/list/images/ads_logo.gif" />
        </div>
        <div class="navigator" style="padding-left: 0;">
            <h2>Findspec</h2>
            <a href="<?php echo BASE_URL; ?>">Trang chủ</a>
            <label class="m_0_5">&rarr;</label>
            <a href="<?php echo $dep_detail->href;?>" title="<?php echo $dep_detail->name;?>"><?php echo $dep_detail->name;?></a>
            <label class="m_0_5">&rarr;</label>
            <label><?php echo $disease_detail->name;?></label>
        </div>
    </div>

    <div class="wrap_content_left box_ct_list"  style="width: 74%;overflow:hidden; margin:0;">
        <div class="ct_left_list">
            <h2 class="cl_555 mb_5 size_16">Tiêu điểm</h2>
            <ul class="pd_b_10">
                <?php $count_hot = 0; ?>
                <?php foreach($hot_article as $hot_art): $count_hot++; ?>
                <li>
                    <?php if($count_hot == 1): ?>
                        <a class="cl_555" href="#" title="<?php echo $hot_art->title;?>"> <img src="<?php echo $hot_art->image;?>" alt="<?php echo $hot_art->title;?>" /></a>
                    <?php endif;?>
                    <p class="line_h_17 mb_10"><a class="cl_555" href="#" title="<?php echo $hot_art->title;?>"><?php echo $hot_art->title;?></a></p>
                </li>
                <?php endforeach; ?>
            </ul>

            <div class="scroll_box">
                <h2 class="cl_555 mb_5 size_16">Tin mới nhất</h2>
                <ul>
                    <?php $count_new = 0; ?>
                    <?php foreach($news_article as $new_art): $count_new++; ?>
                    <li>
                        <?php if($count_new == 1): ?>
                        <a class="cl_555" href="#" title="<?php echo $new_art->title;?>"> <img src="<?php echo $new_art->image;?>" alt="<?php echo $new_art->title;?>" /></a>
                        <?php endif;?>
                        <p class="line_h_17 mb_10"><a class="cl_555" href="#" title="<?php echo $new_art->title;?>"><?php echo $new_art->title;?></a></p>
                    </li>
                    <?php endforeach; ?>
                </ul>
            </div>
        </div>

        <div class="main_content_list mt_10">
            <h2 class="size_22"><?php echo $disease_detail->name; ?></h2>
            <p class="short_desc"><?php echo $disease_detail->short_description; ?></p>
            <div class="brief_list_content bd_b_1">
                <div class="brief_text">
                    Được tạo bởi <b><?php echo $disease_detail->username; ?></b>
                    <br>
                    Đăng lúc <?php echo $disease_detail->create_date; ?>
                    <!--<a href="http://www.healthline.com/health/medical-board">Brenda B. Spriggs, MD, MPH, FACP</a>-->
                    <br>
                </div>
                <div class="brief_social">
                    <span class="share_fb"></span>
                    <span class="share_tt"></span>
                    <span class="share_g"></span>
                    <span class="print"></span>
                </div>
            </div>
            <div class="desc_list_content size_13">
                <?php echo $disease_detail->description;?>
            </div>

            <?php if(isset($symptom_relate)): ?>
                <div class="box_feature_topic detail">
                    <h2 class="size_18">Triệu chứng thường gặp</h2>
                    <ul>
                        <?php foreach($symptom_relate as $symp): ?>
                            <li><a href="<?php echo $symp->href; ?>" title="<?php echo $symp->name; ?>"><?php echo $symp->name; ?></a></li>
                        <?php endforeach; ?>
                    </ul>
                </div>
            <?php endif; ?>

        </div>
        <!--<div class="box_relate_list">
            <?php /*if(isset($symptom_relate)): */?>
            <div class="list_content_relate mr_40">
                <h2 class="cl_555">Bệnh lý liên quan</h2>
                <ul>
                    <?php /*foreach($disease_relate as $dis_r): */?>
                    <li>
                        <h3 class="mb_5"><a class="cl_555" href="<?php /*echo $dis_r->href; */?>" title="<?php /*echo $dis_r->name; */?>"><?php /*echo $dis_r->name; */?></a></h3>
                        <p class="line_h_17 mb_10"><?php /*echo sub_string($dis_r->short_description, 0, 120, '...'); */?></p>
                    </li>
                    <?php /*endforeach; */?>
                </ul>
            </div>
            <?php /*endif; */?>

            <?php /*if(isset($symptom_relate)): */?>
                <div class="list_content_relate">
                    <h2 class="cl_555">Triệu chứng thường gặp</h2>
                    <ul>
                        <?php /*foreach($symptom_relate as $symp): */?>
                        <li>
                            <h3 class="mb_5"><a class="cl_555" href="<?php /*echo $symp->href; */?>" title="<?php /*echo $symp->name; */?>"><?php /*echo $symp->name; */?></a></h3>
                            <p class="line_h_17 mb_10"><?php /*echo sub_string($symp->description, 0, 120, '...'); */?></p>
                        </li>
                        <?php /*endforeach; */?>
                    </ul>
                </div>
            <?php //endif; ?>
        </div>-->
    </div>

    <div class="wrap_content_right"  style="float: left;width: 26%; margin-top: 0;">
        <div class="box_ad_right">
            <p>Advertisement</p>
        </div>
        <div class="main_content_right content_list">
            <h2>Bạn nên xem</h2>
            <?php if(isset($disease_dep) && !empty($disease_dep)): ?>
                <?php foreach($disease_dep as $dis_dep): ?>
                    <div class="content_right">
                        <a href="<?php echo $dis_dep->href;?>" title="<?php echo $dis_dep->name;?>"><img src="<?php echo $dis_dep->image;?>"></a>
                        <p>
                            <a href="<?php echo $dis_dep->href;?>" title="<?php echo $dis_dep->name;?>"><?php echo $dis_dep->name;?></a>
                            <br />
                            <span><?php echo $dis_dep->date;?></span>
                        </p>
                    </div>
                <?php endforeach; ?>
            <?php endif;?>
        </div>

        <?php if(isset($list_group) && !empty($list_group)):?>
            <div class="grid_content_right">
                <h2>Tin liên quan</h2>
                <ul>
                    <?php foreach ($list_group as $art_group) : ?>
                    <li class="content_right">
                        <a href="#" title="<?php echo $art_group->title; ?>"><img src="<?php echo $art_group->image; ?>"></a>
                        <p>
                            <a href="#" title="<?php echo $art_group->title; ?>"><b><?php echo $art_group->title; ?></b></a>
                        </p>
                    </li>
                    <?php endforeach; ?>
                </ul>
            </div>
        <?php endif;?>

    </div>
</div>

<div class="wrap_relate_topic">
    <p class="size_12">Advertisement</p>
    <div class="box_relate">
        <span class="cl_c7">Relates Topics: </span>
        <a href="javascript:;void(0);">How To Lower Cholesterol</a>
        <a href="javascript:;void(0);">Type 2 Diabetes Diet</a>
        <a href="javascript:;void(0);">Triglyceride Diet</a>
    </div>
</div>

<script type="text/javascript">
    function sticky_relocate() {
        var window_top = jQuery(window).scrollTop();
        var scroll_top = jQuery('.ct_left_list').offset().top + jQuery(".ct_left_list").height();
        var scroll_bot = parseInt(jQuery(".wrap_relate_topic").offset().top);

        var cur_width  = jQuery(".scroll_box").width();
        var box_height = jQuery(".scroll_box").height();

        var cur_height = window_top + box_height;
        if (window_top > scroll_top) {
            jQuery(".scroll_box").addClass("box_sticky");
            jQuery(".scroll_box").css("width", cur_width);
        }
        else {
            jQuery(".scroll_box").removeClass("box_sticky");
        }

        if (cur_height >= scroll_bot) {
            $(".scroll_box").css("margin-top", "-" + (Math.abs(cur_height - scroll_bot) + 50) + "px");
        } else {
            $(".scroll_box").css("margin-top", "0px");
        }

    }
    jQuery(function() {
        jQuery(window).scroll(sticky_relocate);
        sticky_relocate();
    });


</script>


